package com.bifrost.repository;

import com.bifrost.entity.CouponType;
import com.bifrost.entity.MerchantStore;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author rangf
 * @date 2018/5/7
 */
public interface CouponTypeRepository extends JpaRepository<CouponType, Long> {

    CouponType getByTypeNameOrTypeCode(String typeName, String typeCode);
    List<CouponType> getAllByMerchantStore(MerchantStore merchantStore);

}
